<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.laydate_bottom{
				display: none;
			}
			/*下拉年份*/
			.laydate_ym.laydate_y>label{
				display: none !important;
			}
			.laydate_y .laydate_yms {
				display: none !important; 
			}
		</style>
		<script src="./rili/laydate.js"></script>
		<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	</head>

	<body>
		<div class="demo4">

			<h3>演示四（自定义日期格式）</h3>

			<div id="test1" class="inline laydate-icon" style="width:150px;">请选择入院日期</div>

		</div>
		<script type="text/javascript">
			!function(){

				laydate.skin('yalan'); //切换皮肤，请查看skins下面皮肤库

				laydate({
					elem: '#demo'
				}); //绑定元素

			}();
			laydate({

				elem: '#test1',

				format: 'YYYY-MM-DD',

				festival: true, //显示节日
				
				istoday: true,
				
				min: laydate.now(-1500), //-1代表昨天，-2代表前天，以此类推
				
				max: laydate.now(2000), //-1代表昨天，-2代表前天，以此类推
				
				choose: function(datas) { //选择日期完毕的回调

				}

			});
			var today = new Date().getFullYear() + '-' + (new Date().getMonth()+1) + '-' + new Date().getDate()
				$('#test1').text(today)
			setTimeout(function(){
				console.log($('#test1'))
				console.log(today)
			
			
			},1000)
		</script>
	</body>

</html>